package com.wiloon.cherry.entity;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

import java.io.Serializable;

/**
 * Created by wiloon on 7/25/14.
 */
@DatabaseTable(tableName="user")
public class User implements Serializable{
    public static final String ID="user_id";
    public static final String NAME = "user_name";

    @DatabaseField(generatedId=true,useGetSet=true,columnName=ID)
    private long id;

    @DatabaseField(useGetSet = true, columnName = NAME)
    private String name;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
